<!-- 扫码登录 -->
<template>
  <div class="sign-content">
    <div class="inner-box">
      <div class="sign-tab">
        <p class="scan-title-text">手机扫码 安全登录</p>
      </div>
      <div class="qrcode-box">
        <p>
          <span>使用 BOSS直聘 APP 扫码登录</span>
          <em>扫码帮助<i class="el-icon-question"></i></em>
        </p>
        <div class="qrcodeimg-box">
          <div class="invalid-box">
            <p>请重新刷新二维码</p>
            <button class="btn">点击刷新</button>
          </div>
          <img
            src="https://login.zhipin.com/wflow/zpweixin/qrcode/getqrcode?content=bosszp-c69fc3f7-df9c-45fd-9b59-57a9642ab4f9&w=200&h=200"
            alt=""
          />
        </div>
      </div>
    </div>
    <div class="text-tip">
      <a class="download-btn">下载App</a>
      <a class="pwd-login-btn" @click="showSmsHandle">验证码登录</a>
      <a class="link-dignup">免费注册</a>
    </div>
    <div class="publicity-info">
      <p>客服电话 400-065-5799 工作时间：9:30-18:30</p>
      <p class="prove-list">
        <a href="">人力资源服务许可证&nbsp;|</a>
        <a href="">营业执照&nbsp;|</a>
        <a href="">朝阳区人社局监督电话</a>
      </p>
    </div>
  </div>
</template>

<script>
export default {
  name: "SignScan",
  methods: {
    showSmsHandle() {
      this.$emit("showSms", false);
    },
  },
};
</script>

<style lang="less" scoped>
.sign-content {
  width: 500px;
  height: 100%;
  float: right;
  border-radius: 0 10px 10px 0;
  background-color: #fff;

  .inner-box {
    position: relative;
    width: 324px;
    padding-top: 68px;
    margin: 0 auto;
    text-align: center;

    .sign-tab {
      height: 22px;
      padding: 0 0 15px;
      line-height: 22px;

      p {
        width: 100%;
        height: 24px;
        font-size: 20px;
        font-weight: 500px;
        color: rgba(65, 74, 96, 1);
        line-height: 24px;
      }
    }

    .qrcode-box {
      position: relative;
      padding-bottom: 17px;

      p {
        padding: 32px 0 38px;
        text-align: center;
        color: #9fa3af;
        font-size: 14px;

        em {
          font-style: normal;
          color: #3a76ff;
          display: inline-block;
          margin-left: 20px;
          vertical-align: middle;
        }
      }

      .invalid-box {
        display: none;
        width: 200px;
        height: 200px;
        margin: 0 auto;
        text-align: center;
        background: rgba(255, 255, 255, 0.9);
        left: 0;
        top: 0;

        p {
          padding: 50px 0 25px;
          color: #333;
        }

        .btn {
          font-size: 13px;
          display: inline-block;
          box-sizing: content-box;
          width: 100px;
          height: 36px;
          line-height: 36px;
          border: 1px #5dd5c8 solid;
          color: #fff;
          letter-spacing: 1px;
          background: #5dd5c8;
          text-align: center;
          cursor: pointer;
        }
      }

      img {
        display: block;
        width: 200px;
        height: 200px;
        margin: 0 auto;
        border: none;
      }
    }
  }

  .text-tip {
    display: flex;
    justify-content: space-between;
    padding: 16px 0 0 0;
    color: #9fa3b0;
    text-align: center;
    overflow: hidden;
    font-size: 13px;
    font-weight: 500;
    width: 324px;
    height: 42px;
    margin: 0 auto;

    a {
      text-decoration: none;
      display: block;
    }
  }

  .publicity-info {
    text-align: center;
    margin-top: 20px;

    p {
      color: #8d92a1;
      font-size: 12px;
      text-align: center;
      line-height: 20px;

      a {
        text-decoration: none;
        color: #8d92a1;
        padding: 0 4px;
        display: inline-block;
      }
    }
  }
}
</style>